package org.grew.openEntity.repository;

import org.grew.openEntity.po.logic.EntityObj;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: open_entity
 * @author: todd
 * @create: 2019-01-05 21:37
 * @description: ${description}
 */
@Repository
public interface EntityRepository extends JpaRepository<EntityObj,Long> {

    @Query(value = "from EntityObj e where e.entityName like %:entityName%")
    List<EntityObj> findEntityObjByEntityName(@Param("entityName")String entityName);

}
